#ifndef QRCODEDETECT_H
#define QRCODEDETECT_H
#include <QString>
#include "opencv2/core/core.hpp"

using namespace cv;
using namespace std;
class QrcodeDetect
{
public:
    QrcodeDetect();
public:
    int detectQrcode(QString filePath);
    int detectQrcode(Mat srcImage);

private:
    Point center_cal(vector<vector<Point> > contours,int i);
    int calculateQrcodeLocation(vector<vector<Point> > contours,double &xOut,double &yOut,double &rOut);
};

#endif // QRCODEDETECT_H
